package com.lys.java8.ffun;

import java.util.ArrayList;
import java.util.List;

public class StreamTest {

	public static void main(String[] args) {
		List<Artist> artists = new ArrayList<>();
		
		String[] li = {"1","2","3"};
		
		Artist artist1 = new Artist("1", li , "");
		Artist artist2 = new Artist("1", li , "");
		Artist artist3 = new Artist("1", li , "");
		Artist artist4 = new Artist("1", li , "");
		Artist artist5 = new Artist("1", li , "");
		
		long count = artists.stream()
				.filter(artist -> artist.getOrigin().equals("London"))
				.count();
		
		

	}

}
